package com.woniuxy.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.woniuxy.entity.LivingInfo;
import com.woniuxy.entity.LoanUserInfo;
import com.woniuxy.service.LivingService;
import com.woniuxy.service.LoanUserService;
import org.aspectj.weaver.loadtime.Aj;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName LoanUserController
 * @Description TODO
 * @Author LI.hh
 * @Date 2022/9/20 15:13
 * @Version 1.0
 */
@RestController
public class LoanUserController {
    @Autowired
    LoanUserService loanUserService;

    /**
     * 添加用户具体信息
     * @param loanUserInfo
     * @return
     */
    @PostMapping("/addLoanUser")
    public AjaxResult addLoanUser(@RequestBody LoanUserInfo loanUserInfo){
        return loanUserService.addLoanUser(loanUserInfo);
    }

    @GetMapping("/findLoanUser")
    public AjaxResult findLoanUser(){
        return loanUserService.findLoanUser();
    }
}
